if __name__=="__main__":  
        import socket
        import struct  
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
        sock.connect(('localhost', 8800))  
        import time  
        flag ="id=0;action=off"
        while True: 
                time.sleep(3)  
                sock.send(flag)
                 #change to another type of value each time

                
        sock.close()  
